package com.example.demo.service.impl;

import com.example.demo.mapper.RoomTypeMapper;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.HashMap;

import javax.annotation.Resource;

/**
 * (RoomType)表服务实现类
 *
 * @author Jerry
 * @since 2025-01-19 15:57:36
 */
@Service("roomTypeService")
public class RoomTypeServiceImpl {
    @Resource
    private RoomTypeMapper roomTypeMapper;

    /**
     * 一次性全部查询
     *
     * @return 查询结果
     */
    public Map<String, Object> selectAll() {
        Map<String, Object> map = new HashMap<>();
        map.put("code", 200);
        map.put("msg", "全部查询成功");
        map.put("data", this.roomTypeMapper.selectAll());
        return map;
    }

}
